﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Axis.BusinessObject;
using Axis.Dao.Config;
using Axis.Web.Administrator.Global;
namespace Sotipha.Web.Views.CoreFrontEnd
{
    public class CCoreFrontEnd
    {
        public CConfigSite GetContent(string idPage)
        {

            CConfigDao core = new CConfigDao();

            CCore cCore = new CCore();
            string inputValue = string.Format("<InputValue ID=\"{0}\"/>", idPage);
            IList<CConfigSite> list = core.GetConfigSite(inputValue);
            if (list != null)
                return list[0];
            return null;
        }
    }
}